<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class ModifyCertificationCompanyApply2020728 extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('certification_company_apply', function (Blueprint $table) {
            $table->unsignedInteger('cooperative_id')->comment('合作商id')->after('user_id');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('certification_company_apply', function (Blueprint $table) {
            $table->dropColumn('cooperative_id');
        });
    }
}
